package com.test.gpa.jdkProxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;

public class Appliaction {
    public static void main(String[] args) {
        Goods goods = new GoodsService();
        MyHalder myHalder = new MyHalder(goods);
        Goods subject = (Goods) myHalder.getSubject();
        subject.addGoods(1);
    }
}
